/**
 * @filename:AttendCourseRecordServiceImpl AttendCourseRecord
 * @project constract  V1.0
 * Copyright(c) 2018 lin keqing Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.AttendCourseRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.AttendCourseRecord;
import com.znufe.exam.service.AttendCourseRecordService;

/**   
 *  
 * @Description:  上课记录信息——SERVICEIMPL
 * @Author:       lin keqing   
 * @CreateDate:   AttendCourseRecord
 * @Version:      V1.0
 *    
 */
@Service
public class AttendCourseRecordServiceImpl extends BaseServiceImpl<AttendCourseRecord> implements AttendCourseRecordService {

	private final AttendCourseRecordMapper attendCourseRecordMapper;

	@Autowired
	public AttendCourseRecordServiceImpl(AttendCourseRecordMapper attendCourseRecordMapper) {
		super(attendCourseRecordMapper);
		this.attendCourseRecordMapper = attendCourseRecordMapper;
	}
	
	//查询对象
	@Override
	public AttendCourseRecord selectByPrimaryKey(Integer id) {
		return attendCourseRecordMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return attendCourseRecordMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(AttendCourseRecord attendCourseRecord) {
		return attendCourseRecordMapper.insertSelective(attendCourseRecord);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(AttendCourseRecord attendCourseRecord) {
		return attendCourseRecordMapper.updateByPrimaryKeySelective(attendCourseRecord);
	}
	
	//查询集合
	@Override
	public List<AttendCourseRecord> queryAttendCourseRecordList(AttendCourseRecord attendCourseRecord) {
		return attendCourseRecordMapper.queryAttendCourseRecordList(attendCourseRecord);
	}

	@Override
	public AttendCourseRecord selectLastRecord() {
		return attendCourseRecordMapper.queryLastRecord();
	}


}